package com.hz.dao;

import com.hz.pojo.Earnings;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface EarningsDao {

    /**
     * 获取平台所有收益
     * @return
     * @throws Exception
     */
    public abstract List<Earnings> getAllEarnings(@Param("seven_days_ago") String seven_days_ago,@Param("today")String today)throws Exception;

    /**
     * 添加收益记录
     * @param earnings_time     收益时间
     * @param earnings_money    收益金额
     * @return
     * @throws Exception
     */
    public abstract int addEarnings(@Param("earnings_time") String earnings_time,@Param("earnings_money") Double earnings_money)throws Exception;
}
